{% extends "index.html" %}

{% block content %}
	<form action="/post/{{ edit_page.url_slug }}" method="post">
	  <div>Titel: <input name="title" id="input_title" value="{{ edit_page.title }}"/></div>            
	  <div id="input_page_content">
	    <textarea id="page_textarea" name="page_textarea" rows="15" cols="72">{{ edit_page.text|removetags:badhtmltags }}
	  </textarea>
	  </div>
	  <div>
	  <input type="submit" value="Save" name="operation" id="saveButton">
	  {% if edit_page %}
	    <input type="submit" value="Delete" name="operation" id="deleteButton">
	  {% endif %}
	  </div>
	</form>
{% endblock content %}

{% block css %}
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/assets/skins/sam/skin.css">
{% endblock css %}

{% block scripts %}
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/container/container-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/menu/menu-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/button/button-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/editor/editor-min.js"></script>
<script type="text/javascript" src="/static/javascript/rich-text-editor.js"></script>
{% endblock scripts %}